#include "Audio.h"
	 
Audio* Audio::instance=NULL; 

Audio::Audio(QObject* parent)
{
	mediaObject=new Phonon::MediaObject(parent);
	audioOutput=new Phonon::AudioOutput(Phonon::MusicCategory, parent);
	audioOutput->setName("NIA Audio Player");
	path=Phonon::createPath(mediaObject, audioOutput);	
}

Audio* Audio::getInstance(QObject* parent)
{
	if (!instance)
	{  
		instance=new Audio(parent);
	}

	return instance;
}

Phonon::MediaObject* Audio::getMediaObject()
{
	return mediaObject;
}

Phonon::AudioOutput* Audio::getAudioOutput()
{
	return audioOutput;
}

